<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>accordion折叠面板</title>
			<script type="text/javascript" src="../js/jquery-1.8.3.js" ></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js" ></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js" ></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
		<!-- 引入ztree -->
		<script src="../js/ztree/jquery.ztree.all-3.5.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../js/ztree/zTreeStyle.css"/>
	</head>
	<body class="easyui-layout">
		<div data-options="region:'north',title:'传智播客管理系统'" style="height: 100px;">北部区域</div>
		<div data-options="region:'west',title:'菜单导航'" style="width: 180px;">
			<!--折叠面板 -->
			<div class="easyui-accordion" data-options="fit:true">
				<div data-options="title:'基础菜单'">
					<ul class="ztree" id="treedemo"></ul>
				</div>
				
				<div data-options="title:'系统菜单'">面板二</div>
			</div>
		</div>
		<div data-options="region:'center'">中部区域
		<div id="tt" class="easyui-tabs" style="width:500px;height:250px;"> 

<div title="Tab1" style="padding:20px;display:none;">tab1 </div> 

<div title="Tab2" data-options="closable:true" style="overflow:auto;padding:20px;display:none;">tab2 </div> 

<div title="Tab3" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">tab3 </div> 

</div> 


		
		</div>
		<div data-options="region:'east'" style="width: 80px;">东部区域</div>
		<div data-options="region:'south'" style="height: 80px;">南部区域</div>
		
		
		<script>
			$(function(){
			var setting = {
			data: {
				simpleData: {
					enable: true // 支持简单json数据格式
				}
			}
		};
			var zNodes = [
			{id:1,pId:0,name:"父节点一"},
			{id:2,pId:0,name:"父节点二"},
			{id:11,pId:1,name:"子节点一"},
			{id:12,pId:1,name:"子节点二"},
			{id:21,pId:2,name:"子节点三"},
			{id:22,pId:2,name:"子节点四"}
		];
			$.fn.zTree.init($("#treedemo"), setting, zNodes);
			})
		</script>
	</body>
</html>
